﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DBUtil.MetaData
{
    /// <summary>
    /// 数据库约束类型
    /// </summary>
    public enum EnumConstraintType
    {
        /// <summary>
        /// 检查约束
        /// </summary>
        Check,
        /// <summary>
        /// 唯一值约束(sqlserver中没有这种约束类型,唯一性是直接定义在列属性上的)
        /// </summary>
        Unique,
        /// <summary>
        /// 主键约束
        /// </summary>
        PrimaryKey,
        /// <summary>
        /// 外键约束
        /// </summary>
        ForeignKey,
        /// <summary>
        /// 默认值约束
        /// </summary>
        DefaultValue
    }
}
